package control.server;

import exceptions.DaoException;
import model.dao.GenericDAO;


public class GenericControl {

	GenericDAO genericDAO = new GenericDAO();
	
	public GenericControl() throws DaoException {
		super();
		genericDAO = new GenericDAO();
		
	}

	public int buscaCodigo(String tabela, String campocodigo) throws Exception {
		return genericDAO.buscaCodigo(campocodigo, tabela);

	}
}
